package com.wanmait.hr.mapper;

import com.wanmait.hr.vo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Department interface
 *
 * @author 王志斌
 * @date 2019/01/22
 * */
public interface DepartmentMapper {
    List<Department> getDepartment();/**获取部门名称--陈*/

    Department getDepartmentManager(Integer id);/**获得部门经理--陈*/

    /**新增部门_获取自增长的id_王志斌
     * @param department
     * @param html
     * @return int
     * */
    int departmentInsert(@Param("department")Department department, @Param("html")String html);
    //int departmentInsert(Department department);

    /**显示所有部门_王志斌
     * @return List<Department>
     * */
    List<Department> getAllDepartmentList();

    /**根据部门id显示部门备注_王志斌
     * @param departId
     * @return String
     * */
    String departRemark(Integer departId);

    /**修改部门时根据部门id获取部门信息_王志斌
     * @param departId
     * @return Department
     * */
    Department quartTheDepartById(Integer departId);

    /**修改部门_王志斌
     * @param department
     * */
    void updateDepart(Department department);

    /**删除部门_王志斌
     * @param departId
     * */
    void deleteDepart(Integer departId);

    /**获取部门总数_王志斌
     * @return Integer departNum
     * */
    Integer departNum();

}